package com.bs.user.api;

import com.bs.user.api.pojo.UserInfoRequest;
import com.bs.user.api.pojo.UserInfoResponse;
import com.bs.user.api.pojo.UserLoginResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service",path = "/user")
public interface UserServiceApi {
    @RequestMapping("/login")
    UserLoginResponse login(@RequestBody UserInfoRequest user);
    @RequestMapping("/getUserInfo")
    UserInfoResponse getUserInfo(@RequestParam("userId") Integer userId);
    @RequestMapping("/getAuthorInfo")
    UserInfoResponse getAuthorInfo(@RequestParam("blogId")Integer blogId);
}
